package com.score.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.score.mapper.ITeacherMapper;
import com.score.pojo.TTeacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class TeacherServiceImpl {
    @Autowired
    private ITeacherMapper teacherMapper;

    public TTeacher getTeacherInfo(String teanum) {
        QueryWrapper<TTeacher> wrapper = new QueryWrapper<>();
        wrapper.eq("num",teanum);
        return teacherMapper.selectOne(wrapper);
    }
}
